package com.key.custom.plm.service.serviceImp;

import com.key.base.service.serviceImp.BaseServiceImp;
import com.key.custom.plm.dao.IBomDao;
import com.key.custom.plm.model.Bom;
import com.key.custom.plm.service.IBomService;

public class BomServiceImp extends BaseServiceImp implements IBomService {
	IBomDao bomDao;

	public IBomDao getBomDao() {
		return bomDao;
	}

	public void setBomDao(IBomDao bomDao) {
		this.bomDao = bomDao;
	}

	/**
	 * model
	 * 
	 * @param bom
	 */
	@Override
	public void add(Bom bom) throws Exception {
		try {
			bomDao.add(bom);
		} catch (Exception e) {
			e.printStackTrace();
			throw e;
		}
	}

	/**
	 * model
	 * 
	 * @param bom
	 */
	@Override
	public void update(Bom bom) throws Exception {
		try {
			bomDao.update(bom);
		} catch (Exception e) {
			e.printStackTrace();
			throw e;
		}
	}
}
